package com.qys.livesMall.anchor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qys.livesMall.anchor.model.entity.H2Anchor;
import com.qys.livesMall.anchor.model.vo.AppAnchorVO;
import com.qys.livesMall.anchor.model.vo.H2AnchorVO;
import com.qys.livesMall.framework.view.BaseQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 主播表(H2Anchor)表数据库访问层
 *
 * @author makejava
 * @since 2023-06-17 09:35:51
 */
public interface H2AnchorMapper extends BaseMapper<H2Anchor> {

    Long queryAnchorIdByUserId(Long userId);

    H2Anchor queryAnchorByUserId(Long userId);

    List<AppAnchorVO> selectAnchorList(@Param("dto") BaseQuery dto, @Param("page") Boolean page);

    /**
     * 查询主播带货数据
     * @param id 主播id
     * @return
     */
    H2AnchorVO getAnchorSellingInformation(Long id);
}


